<div id="app">
    {{message}}
</div>
<script src="https://unpkg.com/vue@3"></script>
<script>
    // Vue3中接收props
    Vue.createApp({
        setup(props) {
            let message = '你好啊！'
            onMounted(() => {
                console.log('title' + props.title);
            })
            return {
                message
            }
        }
    }).mount('#app')

    //Vue2 中接收props
    mounted() {
        console.log('title' + this.title);
    }
</script>